import fetch from "@/utils/request"
const BASE_URL = "/bl-tag";

export const queryAllTags = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/queryTagList",
        data
    })
}


export const modifyById = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/modify",
        data,
    })
}

export const addTag = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/add",
        data,
    })
}

export const queryTagInfo = (id)=>{
    return fetch({
        method:"get",
        url:BASE_URL + `/queryTagInfo?id=${id}`,
    })
}


export const deleteTag = (data)=>{
    return fetch({
        method:"post",
        data,
        url:BASE_URL + "/delete",
    })
}

export const deleteTags = (data)=>{
    return fetch({
        method:"post",
        data,
        url:BASE_URL + "/deleteSelect",
    })
}